Optimal. Leaf size=27 \[ \frac{b \text{sech}(c+d x)}{d}-\frac{(a+b) \tanh ^{-1}(\cosh (c+d x))}{d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.044651, antiderivative size = 27, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 3, integrand size = 19, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.158, Rules used = {4133, 453, 206} \[ \frac{b \text{sech}(c+d x)}{d}-\frac{(a+b) \tanh ^{-1}(\cosh (c+d x))}{d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 4133
Rule 453
Rule 206
Rubi steps
\begin{align*} \int \text{csch}(c+d x) \left (a+b \text{sech}^2(c+d x)\right ) \, dx &=-\frac{\operatorname{Subst}\left (\int \frac{b+a x^2}{x^2 \left (1-x^2\right )} \, dx,x,\cosh (c+d x)\right )}{d}\\ &=\frac{b \text{sech}(c+d x)}{d}-\frac{(a+b) \operatorname{Subst}\left (\int \frac{1}{1-x^2} \, dx,x,\cosh (c+d x)\right )}{d}\\ &=-\frac{(a+b) \tanh ^{-1}(\cosh (c+d x))}{d}+\frac{b \text{sech}(c+d x)}{d}\\ \end{align*}
Mathematica [B] time = 0.049223, size = 67, normalized size = 2.48 \[ \frac{a \log \left (\sinh \left (\frac{c}{2}+\frac{d x}{2}\right )\right )}{d}-\frac{a \log \left (\cosh \left (\frac{c}{2}+\frac{d x}{2}\right )\right )}{d}+\frac{b \text{sech}(c+d x)}{d}+\frac{b \log \left (\tanh \left (\frac{1}{2} (c+d x)\right )\right )}{d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.028, size = 36, normalized size = 1.3 \begin{align*}{\frac{-2\,a{\it Artanh} \left ({{\rm e}^{dx+c}} \right ) +b \left ( \left ( \cosh \left ( dx+c \right ) \right ) ^{-1}-2\,{\it Artanh} \left ({{\rm e}^{dx+c}} \right ) \right ) }{d}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] time = 1.07553, size = 108, normalized size = 4. \begin{align*} -b{\left (\frac{\log \left (e^{\left (-d x - c\right )} + 1\right )}{d} - \frac{\log \left (e^{\left (-d x - c\right )} - 1\right )}{d} - \frac{2 \, e^{\left (-d x - c\right )}}{d{\left (e^{\left (-2 \, d x - 2 \, c\right )} + 1\right )}}\right )} + \frac{a \log \left (\tanh \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )\right )}{d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 2.51786, size = 541, normalized size = 20.04 \begin{align*} \frac{2 \, b \cosh \left (d x + c\right ) -{\left ({\left (a + b\right )} \cosh \left (d x + c\right )^{2} + 2 \,{\left (a + b\right )} \cosh \left (d x + c\right ) \sinh \left (d x + c\right ) +{\left (a + b\right )} \sinh \left (d x + c\right )^{2} + a + b\right )} \log \left (\cosh \left (d x + c\right ) + \sinh \left (d x + c\right ) + 1\right ) +{\left ({\left (a + b\right )} \cosh \left (d x + c\right )^{2} + 2 \,{\left (a + b\right )} \cosh \left (d x + c\right ) \sinh \left (d x + c\right ) +{\left (a + b\right )} \sinh \left (d x + c\right )^{2} + a + b\right )} \log \left (\cosh \left (d x + c\right ) + \sinh \left (d x + c\right ) - 1\right ) + 2 \, b \sinh \left (d x + c\right )}{d \cosh \left (d x + c\right )^{2} + 2 \, d \cosh \left (d x + c\right ) \sinh \left (d x + c\right ) + d \sinh \left (d x + c\right )^{2} + d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \left (a + b \operatorname{sech}^{2}{\left (c + d x \right )}\right ) \operatorname{csch}{\left (c + d x \right )}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] time = 1.14546, size = 104, normalized size = 3.85 \begin{align*} -\frac{{\left (a + b\right )} \log \left (e^{\left (d x + c\right )} + e^{\left (-d x - c\right )} + 2\right )}{2 \, d} + \frac{{\left (a + b\right )} \log \left (e^{\left (d x + c\right )} + e^{\left (-d x - c\right )} - 2\right )}{2 \, d} + \frac{2 \, b}{d{\left (e^{\left (d x + c\right )} + e^{\left (-d x - c\right )}\right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]